package com.tongji.housediy
{
	import com.tongji.housediy.controller.CantavilCMD.GetAllCitysCommand;
	import com.tongji.housediy.controller.CantavilCMD.GetCantavilCommand;
	import com.tongji.housediy.controller.CantavilCMD.GetCantavilDetailCmd;
	import com.tongji.housediy.controller.CantavilCMD.GetCantavilNameCmd;
	import com.tongji.housediy.controller.CantavilCMD.GetCantavilResultCmd;
	import com.tongji.housediy.controller.CantavilCMD.UpdateCantavilCommand;
	import com.tongji.housediy.controller.CantavilCMD.UpdateCantavilModelCmd;
	import com.tongji.housediy.controller.CantavilCMD.UpdateCantavilResultCmd;
	import com.tongji.housediy.controller.LoadAdminCommand;
	import com.tongji.housediy.controller.LoadTypeXMLCommand;
	import com.tongji.housediy.controller.ResetBorderChildCommand;
	import com.tongji.housediy.controller.SetCompNormalCommand;
	import com.tongji.housediy.controller.SetCompWanderCommand;
	import com.tongji.housediy.controller.UpdateBrandModelcmd;
	import com.tongji.housediy.controller.UpdateBrandPicSrcCmd;
	import com.tongji.housediy.controller.UpdateExchangeDataCommand;
	import com.tongji.housediy.controller.UpdateFloorDataCommand;
	import com.tongji.housediy.controller.UpdateLevel1FurnitureXMLCommand;
	import com.tongji.housediy.controller.UpdateLevel1WallXMLCommand;
	import com.tongji.housediy.controller.UpdateLevel2FloorXMLCommand;
	import com.tongji.housediy.controller.UpdateLevel2FurnitureXMLCommand;
	import com.tongji.housediy.controller.UpdateLevel2WallXMLCommand;
	import com.tongji.housediy.controller.UpdateRelatedRoomDataCommand;
	import com.tongji.housediy.controller.UpdateSearchGoodsBrandModelCmd;
	import com.tongji.housediy.controller.UpdateViewControlCommand;
	import com.tongji.housediy.controller.brandCMD.GetAllBrandsCommand;
	import com.tongji.housediy.controller.brandCMD.GetGoodsByBrandCMD;
	import com.tongji.housediy.controller.brandCMD.UpdateBrandXMLCMD;
	import com.tongji.housediy.controller.brandCMD.UpdateBrandsListCMD;
	import com.tongji.housediy.controller.designCMD.GetDesignsByUserCommand;
	import com.tongji.housediy.controller.designCMD.SaveDeleteDesignCommand;
	import com.tongji.housediy.controller.goodsCMD.FilterGoodsCommand;
	import com.tongji.housediy.controller.goodsCMD.GetCollectionCommand;
	import com.tongji.housediy.controller.goodsCMD.GetGoodsByDictCmd;
	import com.tongji.housediy.controller.goodsCMD.GetGoodsTypeCommand;
	import com.tongji.housediy.controller.goodsCMD.GetTypeCommand;
	import com.tongji.housediy.controller.goodsCMD.SearchGoodsCommand;
	import com.tongji.housediy.controller.goodsCMD.UpdateGoodsModelCmd;
	import com.tongji.housediy.controller.goodsCMD.UpdateTypeCommand;
	import com.tongji.housediy.controller.houseCMD.GetHouseByIDCommand;
	import com.tongji.housediy.controller.houseCMD.OpenHouseCommand;
	import com.tongji.housediy.controller.userCMD.*;
	import com.tongji.housediy.events.CantavilEvent.GetAllCityEvent;
	import com.tongji.housediy.events.CantavilEvent.GetCantavilDetailEvent;
	import com.tongji.housediy.events.CantavilEvent.GetCantavilEvent;
	import com.tongji.housediy.events.CantavilEvent.GetCantavilNameEvent;
	import com.tongji.housediy.events.CantavilEvent.GetCantavilResultEvent;
	import com.tongji.housediy.events.GetHouseByIDEvent;
	import com.tongji.housediy.events.TypeXMLAdminEvent;
	import com.tongji.housediy.events.UpdateFloorDataEvent;
	import com.tongji.housediy.events.UpdateViewControlEvent;
	import com.tongji.housediy.events.UserLoadandRegisterEvent.*;
	import com.tongji.housediy.events.brandEvent.GetAllBrandEvent;
	import com.tongji.housediy.events.brandEvent.GetGoodsByBrandEvent;
	import com.tongji.housediy.events.commonEvent.ExchangeDataEvent;
	import com.tongji.housediy.events.commonEvent.GridContainerEvent;
	import com.tongji.housediy.events.commonEvent.LoadAdminEvent;
	import com.tongji.housediy.events.commonEvent.RelatedRoomAdminEvent;
	import com.tongji.housediy.events.commonEvent.SetCompStateEvent;
	import com.tongji.housediy.events.designEvent.GetDesignsByUserEvent;
	import com.tongji.housediy.events.designEvent.SaveDeleteDesignEvent;
	import com.tongji.housediy.events.goodsEvent.FilterGoodsEvent;
	import com.tongji.housediy.events.goodsEvent.GetBrandNameEvent;
	import com.tongji.housediy.events.goodsEvent.GetBrandPicSrcEvent;
	import com.tongji.housediy.events.goodsEvent.GetCollectionEvent;
	import com.tongji.housediy.events.goodsEvent.GetGoodsByDictEvent;
	import com.tongji.housediy.events.goodsEvent.GetGoodsTypeEvent;
	import com.tongji.housediy.events.goodsEvent.GetTypeEvent;
	import com.tongji.housediy.events.goodsEvent.SearchGoodsEvent;
	import com.tongji.housediy.events.houseEvent.OpenHouseEvent;
	import com.tongji.housediy.model.BrandModel;
	import com.tongji.housediy.model.CantavilDropDownListModel;
	import com.tongji.housediy.model.CantavilModel;
	import com.tongji.housediy.model.CollectionModel;
	import com.tongji.housediy.model.CompEnableStateModel;
	import com.tongji.housediy.model.DesignModel;
	import com.tongji.housediy.model.ExchangeDataModel;
	import com.tongji.housediy.model.FloorModel;
	import com.tongji.housediy.model.GoodsModel;
	import com.tongji.housediy.model.HouseModel;
	import com.tongji.housediy.model.ListTypeModel;
	import com.tongji.housediy.model.RightCompStateModel;
	import com.tongji.housediy.model.RightListStateModel;
	import com.tongji.housediy.model.SearchResultModel;
	import com.tongji.housediy.model.SelectedObjectModel;
	import com.tongji.housediy.model.UserInforModel;
	import com.tongji.housediy.model.ViewControlModel;
	import com.tongji.housediy.model.ViewModel;
	import com.tongji.housediy.service.BrandService;
	import com.tongji.housediy.service.CantavilService;
	import com.tongji.housediy.service.DesignService;
	import com.tongji.housediy.service.GoodsService;
	import com.tongji.housediy.service.HouseService;
	import com.tongji.housediy.service.TypeService;
	import com.tongji.housediy.service.UserService;
	import com.tongji.housediy.view.BrandDetailView;
	import com.tongji.housediy.view.BrandDetailViewMediator;
	import com.tongji.housediy.view.BrandsViewStack;
	import com.tongji.housediy.view.BrandsViewStackMediator;
	import com.tongji.housediy.view.Building3DComp;
	import com.tongji.housediy.view.Building3DCompMediator;
	import com.tongji.housediy.view.BuildingComp;
	import com.tongji.housediy.view.BuildingCompMediator;
	import com.tongji.housediy.view.ColorPickerBtn;
	import com.tongji.housediy.view.ColorPickerMediator;
	import com.tongji.housediy.view.CustomDropDownList;
	import com.tongji.housediy.view.CustomDropDownListMediator;
	import com.tongji.housediy.view.DesignContentComp;
	import com.tongji.housediy.view.DesignContentMediator;
	import com.tongji.housediy.view.DirectComp;
	import com.tongji.housediy.view.DirectCompMediator;
	import com.tongji.housediy.view.DrawingBoard;
	import com.tongji.housediy.view.DrawingBoardMediator;
	import com.tongji.housediy.view.DrawingBoardUpComp;
	import com.tongji.housediy.view.DrawingBoardUpMediator;
	import com.tongji.housediy.view.FirstBrandComp;
	import com.tongji.housediy.view.FirstBrandItemRenderer;
	import com.tongji.housediy.view.FirstBrandRendererMediator;
	import com.tongji.housediy.view.FirstComp;
	import com.tongji.housediy.view.FirstCompMediator;
	import com.tongji.housediy.view.FirstLayorShowComp;
	import com.tongji.housediy.view.FirstLayorShowMediator;
	import com.tongji.housediy.view.FloorAreaComp;
	import com.tongji.housediy.view.FloorAreaMediator;
	import com.tongji.housediy.view.FurnitureComp;
	import com.tongji.housediy.view.FurnitureCompMediator;
	import com.tongji.housediy.view.GoodsBrandComp;
	import com.tongji.housediy.view.GoodsBrandMediator;
	import com.tongji.housediy.view.GoodsDetail;
	import com.tongji.housediy.view.GoodsDetailMediator;
	import com.tongji.housediy.view.GoodsList;
	import com.tongji.housediy.view.GoodsSortViewMediator;
	import com.tongji.housediy.view.GoodsSortViewStack;
	import com.tongji.housediy.view.GoodsViewStack;
	import com.tongji.housediy.view.GoodsViewStackMediator;
	import com.tongji.housediy.view.HorizontalZoomMediator;
	import com.tongji.housediy.view.HorizontalZoomScrollbar;
	import com.tongji.housediy.view.Layer4Comp;
	import com.tongji.housediy.view.Layer4CompMediator;
	import com.tongji.housediy.view.LeftDropDownList;
	import com.tongji.housediy.view.LeftDropDownMediator;
	import com.tongji.housediy.view.LeftUpComp;
	import com.tongji.housediy.view.LeftUpMediator;
	import com.tongji.housediy.view.MenuBarComp;
	import com.tongji.housediy.view.MenuBarCompMediator;
	import com.tongji.housediy.view.MyDiyDataListMeditor;
	import com.tongji.housediy.view.MyDiyDataListRepeatedItem;
	import com.tongji.housediy.view.PicSelectCompMediator;
	import com.tongji.housediy.view.PicSlideMediator;
	import com.tongji.housediy.view.PicSlideView;
	import com.tongji.housediy.view.ReleaseSuccessComp;
	import com.tongji.housediy.view.ReleaseSuccessMediator;
	import com.tongji.housediy.view.RightControlComp;
	import com.tongji.housediy.view.RightControlCompMediator;
	import com.tongji.housediy.view.RightDropDownList;
	import com.tongji.housediy.view.RightDropDownMediator;
	import com.tongji.housediy.view.Room3D;
	import com.tongji.housediy.view.Room3DMediator;
	import com.tongji.housediy.view.ScrollingRoomContent;
	import com.tongji.housediy.view.ScrollingRoomMediator;
	import com.tongji.housediy.view.ScrollingWallContent;
	import com.tongji.housediy.view.ScrollingWallMediator;
	import com.tongji.housediy.view.SecondLayerShowMediator;
	import com.tongji.housediy.view.SecondLayorShowComp;
	import com.tongji.housediy.view.ShortCutBtnComp;
	import com.tongji.housediy.view.ShortCutBtnMediator;
	import com.tongji.housediy.view.ShortCutComp;
	import com.tongji.housediy.view.ShortCutMediator;
	import com.tongji.housediy.view.ShowMyDiyComp;
	import com.tongji.housediy.view.SixViewsComp;
	import com.tongji.housediy.view.SixViewsCompMediator;
	import com.tongji.housediy.view.TopMenuComp;
	import com.tongji.housediy.view.TopMenuCompMediator;
	import com.tongji.housediy.view.ViewChangeComp;
	import com.tongji.housediy.view.ViewChangeMediator;
	import com.tongji.housediy.view.ViewMoveComp;
	import com.tongji.housediy.view.ViewMoveMediator;
	import com.tongji.housediy.view.components.AbstractDrawingRoom;
	import com.tongji.housediy.view.components.GridContainer;
	import com.tongji.housediy.view.components.GridContainerMediator;
	import com.tongji.housediy.view.components.MapRoomComp;
	import com.tongji.housediy.view.components.MapRoomMediator;
	import com.tongji.housediy.view.components.RoomFloor;
	import com.tongji.housediy.view.renderer.BrandItemRenterer;
	import com.tongji.housediy.view.renderer.BrandItemRentererMediator;
	import com.tongji.housediy.view.renderer.GoodsItemRenterer;
	import com.tongji.housediy.view.renderer.GoodsItemRentererMediator;
	import com.tongji.housediy.view.skins.buttonskin.MapViewChangeBtnSkin;
	import com.tongji.housediy.view.skins.buttonskin.ProjectionBtnMediator;
	import com.tongji.housediy.view.skins.buttonskin.ProjectionBtnSkin;
	import com.tongji.housediy.view.skins.buttonskin.ViewPointBtnMediator;
	import com.tongji.housediy.view.skins.buttonskin.ViewPointBtnSkin;
	import com.tongji.housediy.view.titlewindows.CantavilTitleWindow;
	import com.tongji.housediy.view.titlewindows.CantavilTitleWindowMediator;
	import com.tongji.housediy.view.titlewindows.DoorRotationTitleWindow;
	import com.tongji.housediy.view.titlewindows.DoorRotationWindowMediator;
	import com.tongji.housediy.view.titlewindows.EntryTitleMediator;
	import com.tongji.housediy.view.titlewindows.EntryTitleWindow;
	import com.tongji.housediy.view.titlewindows.FindPassWordTitleWindow;
	import com.tongji.housediy.view.titlewindows.FindPassWordTitleWindowMediator;
	import com.tongji.housediy.view.titlewindows.FloorColorTitleWindow;
	import com.tongji.housediy.view.titlewindows.FloorColorWindowMediator;
	import com.tongji.housediy.view.titlewindows.GoodsInfoTitleWindow;
	import com.tongji.housediy.view.titlewindows.GoodsInfoWindowMediator;
	import com.tongji.housediy.view.titlewindows.GoodsTitleWindow;
	import com.tongji.housediy.view.titlewindows.GoodsWindowMediator;
	import com.tongji.housediy.view.titlewindows.LoginTitleWinMediator;
	import com.tongji.housediy.view.titlewindows.LoginTitleWindow;
	import com.tongji.housediy.view.titlewindows.MaterialColorAdminView;
	import com.tongji.housediy.view.titlewindows.MaterialColorViewMediator;
	import com.tongji.housediy.view.titlewindows.MaterialList;
	import com.tongji.housediy.view.titlewindows.MaterialListMediator;
	import com.tongji.housediy.view.titlewindows.MaterialWindow;
	import com.tongji.housediy.view.titlewindows.MaterialWindowMediator;
	import com.tongji.housediy.view.titlewindows.NotLoginTitleWinMediator;
	import com.tongji.housediy.view.titlewindows.NotLoginTitleWindow;
	import com.tongji.housediy.view.titlewindows.OpenDesignTitleWindow;
	import com.tongji.housediy.view.titlewindows.OpenDesignWinMediator;
	import com.tongji.housediy.view.titlewindows.OpenWallTitleWindow;
	import com.tongji.housediy.view.titlewindows.OpenWallWindowMediator;
	import com.tongji.housediy.view.titlewindows.PicSelectComp;
	import com.tongji.housediy.view.titlewindows.RegisterTitleWinMediator;
	import com.tongji.housediy.view.titlewindows.RegisterTitleWindow;
	import com.tongji.housediy.view.titlewindows.RoomInfoTitleWindow;
	import com.tongji.housediy.view.titlewindows.RoomInfoWindowMediator;
	import com.tongji.housediy.view.titlewindows.RoomTitleWindow;
	import com.tongji.housediy.view.titlewindows.RoomWindowMediator;
	import com.tongji.housediy.view.titlewindows.SampleRoomTitleWindow;
	import com.tongji.housediy.view.titlewindows.SampleRoomTitleWindowMediator;
	import com.tongji.housediy.view.titlewindows.SaveDesignTitleWindow;
	import com.tongji.housediy.view.titlewindows.SaveDesignVerifyTitleWinMediator;
	import com.tongji.housediy.view.titlewindows.SaveDesignVerifyTitleWindow;
	import com.tongji.housediy.view.titlewindows.SaveDesignWinMediator;
	import com.tongji.housediy.view.titlewindows.WaitingOnlineTitleWindow;
	import com.tongji.housediy.view.titlewindows.WaitingOnlineTitleWindowMediator;
	import com.tongji.housediy.view.titlewindows.WallColorWindowMediator;
	import com.tongji.housediy.view.titlewindows.WallColorWindowTitle;
	import com.tongji.housediy.view.titlewindows.WallTitleWindow;
	import com.tongji.housediy.view.titlewindows.WallWindowMediator;
	
	import de.polygonal.ds.Collection;
	
	import flash.display.DisplayObjectContainer;
	
	import org.robotlegs.mvcs.Context;
	
	/**
	 * 
	 * @author chenchao
	 * 
	 */
	public class HousediyContext extends Context
	{
		public function HousediyContext(contextView:DisplayObjectContainer = null, autoStartup:Boolean = true)
		{
			super(contextView, autoStartup);
		}
		
		override public function startup():void
		{
			//Service
			injector.mapSingleton(UserService);
			injector.mapSingleton(BrandService);
			injector.mapSingleton(GoodsService);
			injector.mapSingleton(DesignService);
			injector.mapSingleton(HouseService);
			injector.mapSingleton(CantavilService);
			injector.mapSingleton(UserInforModel);
			injector.mapSingleton(ViewControlModel);
			injector.mapSingleton(ExchangeDataModel);
			injector.mapSingleton(RightCompStateModel);
			injector.mapSingleton(RightListStateModel);
			injector.mapSingleton(SelectedObjectModel);
			injector.mapSingleton(ListTypeModel);
			injector.mapSingleton(CompEnableStateModel);
			injector.mapSingleton(GoodsModel);
			injector.mapSingleton(FloorModel);
			injector.mapSingleton(BrandModel);
			injector.mapSingleton(SearchResultModel);
			injector.mapSingleton(DesignModel);
			injector.mapSingleton(TypeService);
			injector.mapSingleton(CantavilModel);
			injector.mapSingleton(CollectionModel);
			injector.mapSingleton(CantavilDropDownListModel);//chenzhongyuan 9/11	
			
			//caddy 5/04
			injector.mapSingleton(HouseModel);
			injector.mapSingleton(ViewModel);
			mediatorMap.mapView(NotLoginTitleWindow,NotLoginTitleWinMediator,null,false,false);
			mediatorMap.mapView(SaveDesignVerifyTitleWindow,SaveDesignVerifyTitleWinMediator,null,false,false);
			mediatorMap.mapView(RegisterTitleWindow,RegisterTitleWinMediator);
			mediatorMap.mapView(LoginTitleWindow,LoginTitleWinMediator);
			mediatorMap.mapView(DrawingBoard, DrawingBoardMediator);
			mediatorMap.mapView(DrawingBoardUpComp, DrawingBoardUpMediator);
			mediatorMap.mapView(RightControlComp, RightControlCompMediator);
			mediatorMap.mapView(ShortCutComp, ShortCutMediator);
			mediatorMap.mapView(LeftUpComp, LeftUpMediator);
			mediatorMap.mapView(ViewMoveComp, ViewMoveMediator);
			mediatorMap.mapView(GridContainer, GridContainerMediator);
			mediatorMap.mapView(HorizontalZoomScrollbar, HorizontalZoomMediator);
			mediatorMap.mapView(ShortCutBtnComp, ShortCutBtnMediator);
			mediatorMap.mapView(ScrollingRoomContent, ScrollingRoomMediator);
			mediatorMap.mapView(ScrollingWallContent, ScrollingWallMediator);
			mediatorMap.mapView(BuildingComp, BuildingCompMediator);
			mediatorMap.mapView(Layer4Comp, Layer4CompMediator);
			mediatorMap.mapView(GoodsItemRenterer, GoodsItemRentererMediator);
			mediatorMap.mapView(FurnitureComp, FurnitureCompMediator);
			mediatorMap.mapView(Building3DComp, Building3DCompMediator);
			mediatorMap.mapView(ViewChangeComp, ViewChangeMediator);
			mediatorMap.mapView(DirectComp, DirectCompMediator);
			mediatorMap.mapView(SixViewsComp, SixViewsCompMediator);
			mediatorMap.mapView(DesignContentComp, DesignContentMediator);
			mediatorMap.mapView(Room3D, Room3DMediator);
			mediatorMap.mapView(CustomDropDownList, CustomDropDownListMediator);
			mediatorMap.mapView(FloorAreaComp, FloorAreaMediator);
			mediatorMap.mapView(MapRoomComp, MapRoomMediator);
			mediatorMap.mapView(ViewPointBtnSkin, ViewPointBtnMediator);
			mediatorMap.mapView(ProjectionBtnSkin, ProjectionBtnMediator);
			mediatorMap.mapView(GoodsViewStack, GoodsViewStackMediator);
			mediatorMap.mapView(BrandsViewStack, BrandsViewStackMediator);
			mediatorMap.mapView(PicSlideView, PicSlideMediator);
			mediatorMap.mapView(GoodsDetail, GoodsDetailMediator);
			mediatorMap.mapView(LeftDropDownList, LeftDropDownMediator);
			mediatorMap.mapView(RightDropDownList, RightDropDownMediator);
			mediatorMap.mapView(ColorPickerBtn, ColorPickerMediator);
			mediatorMap.mapView(FirstComp, FirstCompMediator);			
			mediatorMap.mapView(BrandDetailView, BrandDetailViewMediator);
			//kevin
			mediatorMap.mapView(TopMenuComp, TopMenuCompMediator);
			mediatorMap.mapView(GoodsSortViewStack, GoodsSortViewMediator);
			mediatorMap.mapView(WaitingOnlineTitleWindow, WaitingOnlineTitleWindowMediator, null, false, false);
			
			//caddy
			mediatorMap.mapView(MenuBarComp, MenuBarCompMediator);
			mediatorMap.mapView(ReleaseSuccessComp, ReleaseSuccessMediator);

			mediatorMap.mapView(SecondLayorShowComp, SecondLayerShowMediator);
			mediatorMap.mapView(FirstBrandItemRenderer, FirstBrandRendererMediator);
			mediatorMap.mapView(GoodsBrandComp, GoodsBrandMediator);
			//mediatorMap.mapView(ShowMyDiyComp, ShowMyDiyMediator);
			mediatorMap.mapView(MyDiyDataListRepeatedItem, MyDiyDataListMeditor);
			mediatorMap.mapView(BrandItemRenterer, BrandItemRentererMediator);
			mediatorMap.mapView(FirstLayorShowComp, FirstLayorShowMediator);
			mediatorMap.mapView(RoomTitleWindow, RoomWindowMediator, null, false, false);
			mediatorMap.mapView(WallTitleWindow, WallWindowMediator, null, false, false);
			mediatorMap.mapView(GoodsTitleWindow, GoodsWindowMediator, null, false, false);
			mediatorMap.mapView(DoorRotationTitleWindow, DoorRotationWindowMediator, null, false, false);
			mediatorMap.mapView(GoodsInfoTitleWindow, GoodsInfoWindowMediator, null, false, false);
			mediatorMap.mapView(RoomInfoTitleWindow, RoomInfoWindowMediator, null, false, false);
			mediatorMap.mapView(OpenWallTitleWindow, OpenWallWindowMediator, null, false, false);
			mediatorMap.mapView(FloorColorTitleWindow, FloorColorWindowMediator, null, false, false);
			mediatorMap.mapView(PicSelectComp, PicSelectCompMediator, null, false, false);
			mediatorMap.mapView(MaterialColorAdminView, MaterialColorViewMediator, null, false, false);

			mediatorMap.mapView(MaterialList, MaterialListMediator, null, false, false);
			mediatorMap.mapView(WallColorWindowTitle, WallColorWindowMediator, null, false, false);
			mediatorMap.mapView(CantavilTitleWindow, CantavilTitleWindowMediator, null, false, false);
			mediatorMap.mapView(SampleRoomTitleWindow, SampleRoomTitleWindowMediator, null, false, false);
			
			mediatorMap.mapView(SaveDesignTitleWindow, SaveDesignWinMediator, null, false, false);
			//mediatorMap.mapView(SaveHouseTitleWindow, SaveHouseWinMediator, null, false, false);
			mediatorMap.mapView(OpenDesignTitleWindow, OpenDesignWinMediator, null, false, false);
			mediatorMap.mapView(EntryTitleWindow, EntryTitleMediator, null, false, false);
			//向烨
			mediatorMap.mapView(MaterialWindow,MaterialWindowMediator,null,false,false);
			mediatorMap.mapView(FindPassWordTitleWindow,FindPassWordTitleWindowMediator,null,false,false);

			//陈中原
			commandMap.mapEvent(GetCantavilDetailEvent.UPDATE_CANTAVIL_DETAIL, GetCantavilDetailCmd);
			commandMap.mapEvent(GetCantavilDetailEvent.GET_CANTAVIL_DETAIL, GetCantavilDetailCmd);

			//宋佳
			commandMap.mapEvent(LoginEvent.USER_LOGIN, LoginCommand);
			commandMap.mapEvent(LoginEvent.UPDATE_USER, UpdateUserCommand);
			commandMap.mapEvent(UserRegisterEvent.USER_REGISTER,UserRegisterCommand);
			commandMap.mapEvent(GetUserLoadEvent.GET_USER_LOAD,GetUserLoadCommand);
			commandMap.mapEvent(UpdateViewControlEvent.TWO_DIMENSION_VIEW, UpdateViewControlCommand);
			commandMap.mapEvent(UpdateViewControlEvent.THREE_DIMENSION_VIEW, UpdateViewControlCommand);
			commandMap.mapEvent(ExchangeDataEvent.UPDATE_EXCHANGE_MODEL, UpdateExchangeDataCommand);
			commandMap.mapEvent(ExchangeDataEvent.RESET_BORDER_CHILD, ResetBorderChildCommand);
			commandMap.mapEvent(RelatedRoomAdminEvent.UPDATE_RELATED_ROOM, UpdateRelatedRoomDataCommand);
			commandMap.mapEvent(TypeXMLAdminEvent.LOAD_TYPE_XML, LoadTypeXMLCommand);
			commandMap.mapEvent(TypeXMLAdminEvent.UPDATE_FURNITURE_LEVEL1_XML, UpdateLevel1FurnitureXMLCommand);
			commandMap.mapEvent(TypeXMLAdminEvent.UPDATE_FURNITURE_LEVEL2_XML, UpdateLevel2FurnitureXMLCommand);
			commandMap.mapEvent(TypeXMLAdminEvent.UPDATE_WALL_LEVEL1_XML, UpdateLevel1WallXMLCommand);
			commandMap.mapEvent(TypeXMLAdminEvent.UPDATE_WALL_LEVEL2_XML, UpdateLevel2WallXMLCommand);
			commandMap.mapEvent(TypeXMLAdminEvent.UPDATE_FLOOR_LEVEL2_XML, UpdateLevel2FloorXMLCommand);
			commandMap.mapEvent(GetGoodsByDictEvent.GET_GOODS_BY_DICT, GetGoodsByDictCmd);
			commandMap.mapEvent(GetGoodsByDictEvent.UPDATE_GOODS_MODEL, UpdateGoodsModelCmd);
			//commandMap.mapEvent(GetBrandNameEvent.GET_BRAND_NAME, GetBrandNameCmd);
			commandMap.mapEvent(GetBrandNameEvent.UPDATE_BRAND_MODEL, UpdateBrandModelcmd);
			
			commandMap.mapEvent(GetCantavilNameEvent.GET_CANTAVIL_NAME, GetCantavilNameCmd);
			commandMap.mapEvent(GetCantavilNameEvent.UPDATE_CANTAVIL_MODEL, UpdateCantavilModelCmd);
			commandMap.mapEvent(SearchGoodsEvent.SEARCH_GOODS, SearchGoodsCommand);
			commandMap.mapEvent(SearchGoodsEvent.UPDATE_SEARCH_RESULT, SearchGoodsCommand);
			//commandMap.mapEvent(GetGoodsByBrandNameEvent.UPDATE_GOODS_BRAND_MODEL, UpdateSearchGoodsBrandModelCmd);
			
			commandMap.mapEvent(GetCantavilResultEvent.GET_CANTAVIL_BY_CANTAVIL_NAME, GetCantavilResultCmd);
			commandMap.mapEvent(GetCantavilResultEvent.UPDATE_CANTAVIL_BY_CANTAVIL_NAME, UpdateCantavilResultCmd);
			//commandMap.mapEvent(GetBrandPicSrcEvent.GET_BRAND_PIC_SRC, GetBrandPicSrcCmd);
			commandMap.mapEvent(GetBrandPicSrcEvent.UPDATE_BRAND_PIC_SRC, UpdateBrandPicSrcCmd);
			commandMap.mapEvent(FilterGoodsEvent.FILTER_GOODS, FilterGoodsCommand);
			commandMap.mapEvent(SetCompStateEvent.SET_COMP_NORMAL_STATE, SetCompNormalCommand);
			commandMap.mapEvent(SetCompStateEvent.SET_COMP_WANDER_STATE, SetCompWanderCommand);
			commandMap.mapEvent(UpdateFloorDataEvent.LOAD_FLOOR_DATA, UpdateFloorDataCommand);
			commandMap.mapEvent(UpdateFloorDataEvent.LOAD_ROOM_DATA, UpdateFloorDataCommand);
			commandMap.mapEvent(UpdateFloorDataEvent.LOAD_WALL_DATA, UpdateFloorDataCommand);
			
			
			/*------------------------------Design相关函数--------------------------------*/
			commandMap.mapEvent(SaveDeleteDesignEvent.OPEN_DESIGN_RESULT, SaveDeleteDesignCommand);
			commandMap.mapEvent(SaveDeleteDesignEvent.SAVE_DESIGN, SaveDeleteDesignCommand);
			commandMap.mapEvent(SaveDeleteDesignEvent.DELETE_DESIGN, SaveDeleteDesignCommand);			
			commandMap.mapEvent(GetDesignsByUserEvent.GET_DESIGNS_BY_USERID, GetDesignsByUserCommand);
			commandMap.mapEvent(GetDesignsByUserEvent.UPDATE_DESIGN_MODEL, GetDesignsByUserCommand);
			
			/*------------------------------House相关函数--------------------------------*/
			commandMap.mapEvent(OpenHouseEvent.UPDATE_HOUSE_MODEL, OpenHouseCommand);
			commandMap.mapEvent(OpenHouseEvent.GAT_ALL_HOUSES, OpenHouseCommand);
			commandMap.mapEvent(OpenHouseEvent.GET_HOUSE_BY_CANTAVIL, OpenHouseCommand);
			commandMap.mapEvent(OpenHouseEvent.GET_SAMPLE_HOUSE, OpenHouseCommand);
			commandMap.mapEvent(OpenHouseEvent.UPDATE_SAMPLE_HOUSE, OpenHouseCommand);
			
			commandMap.mapEvent(GetGoodsTypeEvent.GET_GOODS_TYPE, GetGoodsTypeCommand);
			commandMap.mapEvent(GetTypeEvent.GET_TYPE, GetTypeCommand);
			commandMap.mapEvent(GetTypeEvent.UPDATE_TYPE, UpdateTypeCommand);
			
			commandMap.mapEvent(GetAllBrandEvent.GET_ALL_BRANDS, GetAllBrandsCommand);
			commandMap.mapEvent(GetAllBrandEvent.GET_BRANDS_XML, GetAllBrandsCommand);
			commandMap.mapEvent(GetAllBrandEvent.UPDATE_BRAND_LIST, UpdateBrandsListCMD);
			commandMap.mapEvent(GetAllBrandEvent.UPDATE_BRAND_XML, UpdateBrandXMLCMD);
			
			commandMap.mapEvent(GetGoodsByBrandEvent.GET_GOODS_BY_BRANDID, GetGoodsByBrandCMD);
			commandMap.mapEvent(GetGoodsByBrandEvent.UPDATE_GOODS_BRAND, GetGoodsByBrandCMD);
			
			commandMap.mapEvent(FilterGoodsEvent.FILTER_BRAND, FilterGoodsCommand);
			

						
			commandMap.mapEvent(GetCantavilEvent.GET_CANTAVIL, GetCantavilCommand);
			commandMap.mapEvent(GetCantavilEvent.UPDATE_CANTAVIL, UpdateCantavilCommand);
			
			commandMap.mapEvent(LoadAdminEvent.LOAD_BITMAP, LoadAdminCommand);
			commandMap.mapEvent(GetCollectionEvent.GET_COLLECTIONS, GetCollectionCommand);
			commandMap.mapEvent(GetCollectionEvent.UPDATE_COLLECTIONS, GetCollectionCommand);
			
			commandMap.mapEvent(GetAllCityEvent.GET_ALL_CITYS, GetAllCitysCommand);
			commandMap.mapEvent(GetAllCityEvent.UPDATE_CITY_LIST, GetAllCitysCommand);
			
			commandMap.mapEvent(GetHouseByIDEvent.GET_HOUSE_BY_ID, GetHouseByIDCommand);
			commandMap.mapEvent(GetHouseByIDEvent.UPDATE_HOUSE_DETAIL, GetHouseByIDCommand);

		}
	}
}